<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>cke</title>
</head>
<body>
	cookie


	<script>
		function setCookie(name,value,expires) {
			// 获取当前时间
			var current_date = new Date();
			// 获取当前秒 + 5
			current_date.setSeconds(current_date.getSeconds() + expires);
			document.cookie = name + '=' + value + ';expires=' + current_date.toUTCString();
		}
	</script>
</body>
</html>